package xsis.music.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name="user")
public class UserModel {
	String email;
	String password;
	String nama_dpn;
	String nama_blkng;
	String alamat;
	String no_telp;
	String kode;
	
	@Column(name="kode")
	public String getKode() {
		return kode;
	}
	public void setKode(String kode) {
		this.kode = kode;
	}
	int enabled;
	
	@Column(name="enabled")
	public int getEnabled() {
		return enabled;
	}
	public void setEnabled(int enabled) {
		this.enabled = enabled;
	}
	@Id
	@Column(name="email",unique=true,nullable=false)
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	@Column(name="password")
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name="nama_dpn")
	public String getNama_dpn() {
		return nama_dpn;
	}
	public void setNama_dpn(String nama_dpn) {
		this.nama_dpn = nama_dpn;
	}
	
	@Column(name="nama_blkng")
	public String getNama_blkng() {
		return nama_blkng;
	}
	public void setNama_blkng(String nama_blkng) {
		this.nama_blkng = nama_blkng;
	}
	
	@Column(name="alamat")
	public String getAlamat() {
		return alamat;
	}
	public void setAlamat(String alamat) {
		this.alamat = alamat;
	}
	
	@Column(name="no_telp")
	public String getNo_telp() {
		return no_telp;
	}
	public void setNo_telp(String no_telp) {
		this.no_telp = no_telp;
	}
	
}
